package com.xzzz.expand.sentinel.metric.es.config;

import com.xzzz.expand.sentinel.metric.es.controller.SentinelMetricControllerByElasticSearch;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Slf4j
@Configuration
public class SentinelMetricEsConfiguration {

    @Bean
    public SentinelMetricControllerByElasticSearch sentinelMetricControllerByEs() {
        return new SentinelMetricControllerByElasticSearch();
    }

    @PostConstruct
    public void init() {
        log.info("[SENTINEL] 指标接口初始化完成 BY ElasticSearch");
    }
}
